package cd.cdyb.sms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author lilin
 */
@Data
public class EmployeeDto {

    private Integer employeeId;

    /**
     * 用户名
     */
    @NotBlank(message = "人员名称不能为空")
    private String username;

    /**
     * 手机号
     */
    @NotBlank(message = "联系方式不能为空")
    private String phone;

    /**
     * 是否有效
     */
    private Boolean valid;

    /**
     * 角色
     */
    @NotNull(message = "角色不能为空")
    private Integer roleId;

    /**
     * 创建人id
     */
    private Integer createEmployeeId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Integer isDeleted;

    /**
     * 密码
     */
    private String password;

}
